package com.mrjy.live.dao;

import java.util.Date;
import java.util.List;

import com.mrjy.common.entity.WisLessonInfo;
//import com.xxl.common.entity.WisPayment;

public interface IWisLessonInfoDao {
	//查询所有课程
	List<WisLessonInfo> queryLessons(WisLessonInfo wisLessonInfo);
	
	int countLessons(WisLessonInfo wisLessonInfo);
	
	//插入课程
	int insert(WisLessonInfo wisLessonInfo);
	
    int deleteByPrimaryKey(Integer id);
    
    int deleteByCode(String lessonCode);
	
    List<WisLessonInfo> queryByTeacherId(WisLessonInfo wisLessonInfo);
    
    int countTeacherHost(WisLessonInfo wisLessonInfo);
    
    int countTeachers(WisLessonInfo wisLessonInfo);
    
    List<WisLessonInfo> queryTeachers(WisLessonInfo wisLessonInfo);
    
    WisLessonInfo queryByLessonName(String lessonName);
    
    WisLessonInfo queryByLessonCode(String lessonCode);
    
    WisLessonInfo queryLimitByLessonCode(String lessonCode);
    
    WisLessonInfo queryIdByCode(String lessonCode);
    
  //根据code修改课程
  	int updateByCode(WisLessonInfo wisLessonInfo);
  	
  	int updateOnlinePeopleByCode(WisLessonInfo wisLessonInfo);

  	Date getTime();
}
